<template>
  <div class="item flex-column">
    <div class="img-top">
      <img :src="radioCard.picUrl" alt="" />
      <div class="name">{{ radioCard.name }}</div>
    </div>
    <div class="name-bottom">
      {{ radioCard.rcmdtext }}
    </div>
  </div>
</template>

<script>
export default {
  name: "Radioscard",
  data() {
    return {};
  },
  props: {
    radioCard: {},
  },
};
</script>

<style scoped lang="less">
.item {
  margin-top: 20px;
  width: 160px;
  height: 220px;
  justify-content: start;
  .img-top {
    width: 160px;
    height: 160px;
    position: relative;

    img {
      width: 100%;
      height: 100%;
    }
    .name {
      position: absolute;
      bottom: 0;
      left: 0;
      color: #f1f1f1;
      width: 160px;
      font-size: 10px;
      height: 18px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
  .name-bottom {
    width: 100%;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}
</style>